#pragma once

#include "LevelElement.h"
class D3DApp;
class DX10ObjMesh;
class Level;

class Tree : public LevelElement
{
public:

	Tree(D3DXVECTOR3 pos, D3DApp *app);
	virtual ~Tree(void);

	virtual void Tick(const InputState&  state);
	virtual void Draw(const RenderContext* context, ID3D10ShaderResourceView* shadowdepthmap = 0);
	virtual void Initialize(ContentManager *pContentManager);

	static void BuildDrawMesh(D3DApp* app, Level* plevel, ContentManager *pContentManager);
	static DX10ObjMesh* GetDrawMesh() {return m_pDrawMesh;};
	static void ReleaseDrawMesh();
private:

	static DX10ObjMesh* m_pDrawMesh;
	D3DXVECTOR3 m_Position;
	D3DApp* m_app;
};
